
#pragma once

#include "base/core/singleton.h"
#include "Common/TableDefine.h"


class TaskcontentComcondCfg : public ManualSingleton <TaskcontentComcondCfg>
{
	friend ManualSingleton <TaskcontentComcondCfg>;
public:
	TaskcontentComcondCfg();
	~TaskcontentComcondCfg();
	bool Init(const char *szCfgFile, const char *szSplitChar);
	bool UnInit();
	void Clear();
	const TaskcontentComcondCfgInfo *GetTaskcontentComcondCfgInfo(int32_t comcondID);
	const TaskcontentComcondCfgMap *GetTaskcontentComcondCfgMap() { return &m_TaskcontentComcondCfgMap; }
private:
	TaskcontentComcondCfgMap m_TaskcontentComcondCfgMap;
};

#define  g_MakeTaskcontentComcondCfgTable() (TaskcontentComcondCfg::Instance())
#define  g_GetTaskcontentComcondCfgTable() (TaskcontentComcondCfg::GetInstance())
#define  g_DelTaskcontentComcondCfgTable() (TaskcontentComcondCfg::Destroy())